﻿
using System;
using System.Collections.Generic;
using System.Data;
using SMSPanasonic.Data;
using System.Data.SqlClient;

namespace SMSPanasonic.Business
{
    public partial class SmsMoStatistic
    {
        #region public properties
        public Guid MoGuid { get; set; }
        public string Subs { get; set; }
        public string Message { get; set; }
        public string ShortCode { get; set; }
        public DateTime? ReceivedTime { get; set; }
        public string Status { get; set; }
        public int? OperatorID { get; set; }
        public Guid? SmsInGUID { get; set; }
        public int? CooperateID { get; set; }
        public int? AgencyID { get; set; }
        #endregion

        #region static method
        public static void Insert(DataTable dtSource)
        {
            //if (dtSource.Columns.Contains("SmsInGUID"))
            //    dtSource.Columns.Remove("SmsInGUID");
            DBSQLCommand.BulkCopy("SmsMoStatistic", dtSource);
        }
        #endregion
    }
}
